package com.xin.chainclick.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xin.chainclick.entity.ClickAnnouncementEntity;
import com.xin.chainclick.entity.ClickArticleEntity;
import com.xin.chainclick.entity.ClickNewEntity;
import com.xin.chainclick.mapper.ClickNewEntityMapper;
import com.xin.chainclick.service.ClickNewEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClickNewEntityServiceImpl extends ServiceImpl<ClickNewEntityMapper, ClickNewEntity> implements ClickNewEntityService {

    @Autowired
    ClickNewEntityMapper clickNewEntityMapper;
    @Override
    public List<ClickNewEntity> selectClickNewEntities(String name) {
        return clickNewEntityMapper.selectClickNewEntities(name);
    }

    @Override
    public List<ClickAnnouncementEntity> selectClickAnnouncementEntities(String name) {
        return clickNewEntityMapper.selectClickAnnouncementEntities(name);
    }

    @Override
    public List<ClickArticleEntity> selectClickArticleEntities(String name) {
        return clickNewEntityMapper.selectClickArticleEntities(name);
    }
    // Implementation methods here
}
